package com.lx.entity;

import java.time.LocalDate;

/**
 * @author c先生
 * @date 2022年04月11日 下午 7:36:05
 * @describe
 * Book属性：书籍编号，书籍名称，书籍作者，书籍价格，书籍简介，书籍出版时间，书籍出版社
 */

public class Book {
    private Integer bookId;//书籍编号
    private String bookName;//书籍名称
    private String bookAuthor;//书籍作者
    private Double bookPrice;//书籍价格
    private String bookIntroduce;//书籍简介
    private LocalDate bookTime;//书籍出版时间
    private String bookPublisher;//书籍出版社

    @Override
    public String toString() {
        return "Book{" +
                "书籍编号=" + bookId +
                ", 书籍名称='" + bookName + '\'' +
                ", 作者='" + bookAuthor + '\'' +
                ", 价格=" + bookPrice +
                ", 书籍简介='" + bookIntroduce + '\'' +
                ", 出版时间=" + bookTime +
                ", 出版社='" + bookPublisher + '\'' +
                '}';
    }



    public Book() {
    }

    public Book(Integer bookId, String bookName, String bookAuthor, Double bookPrice, String bookIntroduce, LocalDate bookTime, String bookPublisher) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.bookPrice = bookPrice;
        this.bookIntroduce = bookIntroduce;
        this.bookTime = bookTime;
        this.bookPublisher = bookPublisher;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public String getBookIntroduce() {
        return bookIntroduce;
    }

    public void setBookIntroduce(String bookIntroduce) {
        this.bookIntroduce = bookIntroduce;
    }

    public LocalDate getBookTime() {
        return bookTime;
    }

    public void setBookTime(LocalDate bookTime) {
        this.bookTime = bookTime;
    }

    public String getBookPublisher() {
        return bookPublisher;
    }

    public void setBookPublisher(String bookPublisher) {
        this.bookPublisher = bookPublisher;
    }

}
